//
//  MovieDetailView.m
//  UI-13-DouBan--
//
//  Created by lanou3g on 15/8/28.
//  Copyright (c) 2015年 自由科技. All rights reserved.
//

#import "MovieDetailView.h"

@implementation MovieDetailView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self setViews];
    }
    return self;
}

- (void)setViews{
    _scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, 1111)];
    _scrollView.contentSize = CGSizeMake(self.frame.size.width, 11111);
    [self addSubview:_scrollView];
    
    //电影图片
    _movieImageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 80, 100, 150)];
    _movieImageView.backgroundColor = [UIColor redColor];
    [_scrollView addSubview:_movieImageView];
    
    //电影名字
    _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 20, 300, 50)];
    _titleLabel.font = [UIFont systemFontOfSize:20];
    [_scrollView addSubview:_titleLabel];
    
    ////rating：评分
    _ratingLabel = [[UILabel alloc] initWithFrame:CGRectMake(140, 80, 200, 30)];
    [_scrollView addSubview:_ratingLabel];
    
    ////runtime：播放时间
    _runtimeLabel = [[UILabel alloc] initWithFrame:CGRectMake(140, 120, 200, 30)];
    [_scrollView addSubview:_runtimeLabel];
    
    ////genres：影片分类
    _genresLabel = [[UILabel alloc] initWithFrame:CGRectMake(140, 160, 200, 30)];
    [_scrollView addSubview:_genresLabel];
    
    ////country：国家
    _countryLabel = [[UILabel alloc] initWithFrame:CGRectMake(140, 200, 200, 30)];
    [_scrollView addSubview:_countryLabel];
    
    //制作人
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(30, 230, 200, 50)];
    label.text = @"制作人";
    [_scrollView addSubview:label];
    
    ////actors：制作人信息
    _actorsLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 300, 300, 60)];
    _actorsLabel.numberOfLines = 0;
    [_scrollView addSubview:_actorsLabel];
    
    //电影情节
    _mLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 360, 200, 50)];
    _mLabel.text = @"电影情节";
    [_scrollView addSubview:_mLabel];
    
    ////plot_simple：简介 (电影情节)
    _plot_simpleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 400, 360, 300)];
    _plot_simpleLabel.numberOfLines = 0;
    [_scrollView addSubview:_plot_simpleLabel];
    
    
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
